package com.hopes.bizz.emergency.common.service;

import com.hopes.bizz.emergency.command.mapper.ErAssessKpiMapper;
import com.hopes.bizz.emergency.drill.mapper.ErDrillPlanMapper;
import com.hopes.bizz.emergency.plan.mapper.ErEmergencyPlanMapper;
import com.hopes.bizz.emergency.resources.mapper.ErExpertMapper;
import com.hopes.bizz.emergency.resources.mapper.ErMaterialMapper;
import com.hopes.bizz.emergency.resources.mapper.ErTeamMapper;
import com.hopes.bizz.emergency.resources.mapper.ErWarehouseMapper;
import com.hopes.boss.admin.api.entity.SysDictItem;
import com.hopes.boss.common.service.TableDictService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author CX
 * @ProjectName bizz
 * @Description 数据表转字典
 * @time 2023/10/23 13:42
 */

@Slf4j
@Service
@RequiredArgsConstructor
public class ParkEmergencyDictServiceImpl implements TableDictService {

    private final ErTeamMapper erTeamMapper;
    private final ErExpertMapper erExpertMapper;
    private final ErWarehouseMapper erWarehouseMapper;
    private final ErDrillPlanMapper erDrillPlanMapper;
    private final ErAssessKpiMapper erAssessKpiMapper;
    private final ErEmergencyPlanMapper erEmergencyPlanMapper;

    /**
     *  应急队伍-下拉选择
     */
    public List<SysDictItem> listEmergencyTeamIdAsDict() {
        return erTeamMapper.listEmergencyTeamIdAsDict();
    }

    /**
     * 应急队伍-仅翻译
     */
    public List<SysDictItem> justListEmergencyTeamIdAsDict() {
        return erTeamMapper.justListEmergencyTeamIdAsDict();
    }

    /**
     * 应急专家-仅翻译
     */
    public List<SysDictItem> justListEmergencyExpertIdAsDict() {
        return erExpertMapper.justListEmergencyExpertIdAsDict();
    }

    /**
     *  应急仓库-下拉选择
     */
    public List<SysDictItem> listEmergencyWarehouseIdAsDict() {
        return erWarehouseMapper.listEmergencyWarehouseIdAsDict();
    }

    /**
     *  应急演练计划-下拉选择
     */
    public List<SysDictItem> listEmergencyDrillPlanIdAsDict() {
        return erDrillPlanMapper.listEmergencyDrillPlanIdAsDict();
    }

    /**
     *  应急演练计划-仅翻译
     */
    public List<SysDictItem> justListEmergencyDrillPlanIdAsDict() {
        return erDrillPlanMapper.justListEmergencyDrillPlanIdAsDict();
    }

    /**
     *  园区应急预案-仅翻译
     */
    public List<SysDictItem> justListEmergencyCompanyPlanIdAsDict() {
        return erEmergencyPlanMapper.justListEmergencyCompanyPlanIdAsDict();
    }

    /**
     *  应急事件评估指标-下拉选择
     */
    public List<SysDictItem> listEmergencyAccessKpiAsDict() {
        return erAssessKpiMapper.listEmergencyAccessKpiAsDict();
    }
}
